#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QListWidgetItem>
#include "board.h"
#include "settings.h"
#include "searchdialog.h"
#include <PGNGameCollection.h>
#include <PGNMoveList.h>
#include <CEEngine.h>

namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    void loadFile(QString fileName);
private:
    Settings *m_settingsDlg;
    SearchDialog *m_searchDialog;
    Ui::MainWindow *ui;
    ChEngn::Engine *m_engine;
    pgn::GameCollection m_games;
    pgn::MoveList m_moves;
    bool m_halfMove;
private slots:
    void on_settingsBttn_clicked();
    void on_findBttn_clicked();
    void continueWork();
    void on_choosingBttn_clicked();
    void on_nextBttn_clicked();
    void on_loadGameBttn_clicked();
};

#endif // MAINWINDOW_H
